﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;
using Business.IManager;
using DataAccess.IService;
using DataAccess.Service;
using System.Data;

namespace Business.Manager
{
    public class DepartmentManager:IDepartmentManager
    {
        IDepartmentService departmentService = new DepartmentService();
        public Department getDepartmentInforByPaymentType(String paymentType)
        {
            String depName = paymentType;
            if (paymentType.Equals("水电费"))
            {
                depName = "福建师范大学后勤服务中心";
            }
            else if (paymentType.Equals("网费"))
            {
                depName = "福建师范大学网络管理中心";
            }
            else if (paymentType.Equals("一卡通"))
            {
                depName = "福建师范大学一卡通服务中心";
            }
            else
            {
                depName = "福建师范大学财务部";
            }
            return departmentService.selectDepartment(depName);
        }
        public DataSet getDepartment()
        {
            return departmentService.selectDepartment();
        }
        /*public DataSet getBankImg()
        {
            return departmentService.selectBankImag();
        }*/
    }

}
